{//前台已录合同学员列表模板}
<include file="Public:header" />

<div class="body">
    <b>已录合同学员列表：</b>
    <a href="{:U('ppts/qt_no_input_ht_stu')}">[未录合同学员列表]</a>
    <br /><br />
    <table width="800" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <tr>
        
        <td>学员姓名</td>
        <td>性别</td>
        <td>合同编号</td>
        <td>合同金额</td>
        <td>已支付金额</td>
        <td>余款</td>
        <td>合同录入时间</td>
        <td>操作</td>
    </tr>
    <foreach name="list" item="vo">
        <tr <php>
            if($vo['ready_price']>=$vo['hetong_price'])
                echo 'bgcolor="#dfffd4"';
            else
                echo 'bgcolor="#ffb8b8"';
        </php>>
            
            <td>{$vo.stu_name}</td>
            <td>{$vo.stu_sex}</td>
            <td>{$vo.ht_no}</td>
            <td>{$vo.hetong_price}</td>
            <td>{$vo.ready_price}</td>
            <td>
                <php>echo $vo['hetong_price']-$vo['ready_price']</php>

            </td>
            <td>{$vo.ht_input_time}</td>
            <td>
            <php>
                if($vo['ready_price']<$vo['hetong_price']){
            </php>[<a href="__APP__/ppts-qt_hetong_shoukuan?id={$vo.stu_id}&k_id={$vo.ht_id}&TB_iframe=true&height=200&width=350" class="thickbox">收款</a>]
            <php>
                }
                if($vo['ready_price']>=$vo['hetong_price'] && $vo['ready_price']>0){
                    if($vo['keshi']>0){
                    
            </php>
                &nbsp;[<a href="__APP__/ppts-qt_hetong_goumaikeshi?id={$vo.stu_id}&k_id={$vo.ht_id}&TB_iframe=true&height=300&width=300" class="thickbox">
                    购买课时</a>]
                <php>
                    }else{
                        echo '[查看课时]';
                    }
                }
                    if($vo['ready_price']<=0){
                </php>
                [删除]
                <php>
                    }
                </php>
                [<a href="{:U('ppts/qt_view_ready_inputht_info?id='.$vo['ht_id'])}">合同详细</a>][<font color="red">未审</font>]</td>
        </tr>
    </foreach>
    <tr>
        <td colspan="8" width="100%" align="right">{$page}&nbsp;&nbsp;&nbsp;&nbsp;</td>
    </tr>
</table>
    <br />
    <br />
</div>
<include file="Public:ender" />